using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MemberReq : GeneratedMessageLite<MemberReq, MemberReq.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MemberReq, MemberReq.Builder>
		{
			private bool resultIsReadOnly;
			private MemberReq result;
			protected override MemberReq.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MemberReq MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MemberReq DefaultInstanceForType
			{
				get
				{
					return MemberReq.DefaultInstance;
				}
			}
			public SKBuiltinString_t MemberName
			{
				get
				{
					return this.result.MemberName;
				}
				set
				{
					this.SetMemberName(value);
				}
			}
			public Builder()
			{
				this.result = MemberReq.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MemberReq cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MemberReq PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MemberReq other = this.result;
					this.result = new MemberReq();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MemberReq.Builder Clear()
			{
				this.result = MemberReq.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MemberReq.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MemberReq.Builder(this.result);
				}
				return new MemberReq.Builder().MergeFrom(this.result);
			}
			public override MemberReq BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MemberReq.Builder MergeFrom(IMessageLite other)
			{
				if (other is MemberReq)
				{
					return this.MergeFrom((MemberReq)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MemberReq.Builder MergeFrom(MemberReq other)
			{
				return this;
			}
			public override MemberReq.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MemberReq.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MemberReq._memberReqFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MemberReq._memberReqFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 10u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
						if (this.result.hasMemberName)
						{
							builder.MergeFrom(this.MemberName);
						}
						input.ReadMessage(builder, extensionRegistry);
						this.MemberName = builder.BuildPartial();
					}
				}
				return this;
			}
			public MemberReq.Builder SetMemberName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMemberName = true;
				this.result.memberName_ = value;
				return this;
			}
			public MemberReq.Builder SetMemberName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasMemberName = true;
				this.result.memberName_ = builderForValue.Build();
				return this;
			}
			public MemberReq.Builder MergeMemberName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasMemberName && this.result.memberName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.memberName_ = SKBuiltinString_t.CreateBuilder(this.result.memberName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.memberName_ = value;
				}
				this.result.hasMemberName = true;
				return this;
			}
			public MemberReq.Builder ClearMemberName()
			{
				this.PrepareBuilder();
				this.result.hasMemberName = false;
				this.result.memberName_ = null;
				return this;
			}
		}
		public const int MemberNameFieldNumber = 1;
		private static readonly MemberReq defaultInstance;
		private static readonly string[] _memberReqFieldNames;
		private static readonly uint[] _memberReqFieldTags;
		private bool hasMemberName;
		private SKBuiltinString_t memberName_;
		private int memoizedSerializedSize = -1;
		public static MemberReq DefaultInstance
		{
			get
			{
				return MemberReq.defaultInstance;
			}
		}
		public override MemberReq DefaultInstanceForType
		{
			get
			{
				return MemberReq.DefaultInstance;
			}
		}
		protected override MemberReq ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SKBuiltinString_t MemberName
		{
			get
			{
				return this.memberName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasMemberName;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasMemberName)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.MemberName);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MemberReq()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] memberReqFieldNames = MemberReq._memberReqFieldNames;
			if (this.hasMemberName)
			{
				output.WriteMessage(1, memberReqFieldNames[0], this.MemberName);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasMemberName)
			{
				num ^= this.memberName_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MemberReq memberReq = value as MemberReq;
			return memberReq != null && (this.hasMemberName == memberReq.hasMemberName && (!this.hasMemberName || this.memberName_.Equals(memberReq.memberName_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MemberReq, MemberReq.Builder>.PrintField("MemberName", this.hasMemberName, this.memberName_, writer);
		}
		public static MemberReq ParseFrom(byte[] data)
		{
			return MemberReq.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MemberReq MakeReadOnly()
		{
			return this;
		}
		public static MemberReq.Builder CreateBuilder()
		{
			return new MemberReq.Builder();
		}
		public override MemberReq.Builder ToBuilder()
		{
			return MemberReq.CreateBuilder(this);
		}
		public override MemberReq.Builder CreateBuilderForType()
		{
			return new MemberReq.Builder();
		}
		public static MemberReq.Builder CreateBuilder(MemberReq prototype)
		{
			return new MemberReq.Builder(prototype);
		}
		static MemberReq()
		{
			MemberReq.defaultInstance = new MemberReq().MakeReadOnly();
			MemberReq._memberReqFieldNames = new string[]
			{
				"MemberName"
			};
			MemberReq._memberReqFieldTags = new uint[]
			{
				10u
			};
			object.ReferenceEquals(micromsg.Proto.MemberReq.Descriptor, null);
		}
	}
}
